<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
 <script type="text/javascript">
 function reg(){
var regform =document.getElementById("regform");
var pwd=document.getElementById("pwd").value;
var repwd=document.getElementById("repwd").value;
if(pwd==repwd){
regform.submit();
}else{alert("两次输入的密码不一致");
}
 
 
 }
 </script>
    <base href="<%=basePath%>">
    
    <title>用户注册</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <form action="useraction!regist.action" method="post" id="regform" >
  <table align="center" width="100%">
<tr align="center"><td colspan="2"><font size="8" face="楷体">用户注册</font></td></tr>  
<tr><td align="right" width="50%">用户名</td><td><input type="text" name="user.userName"></td></tr>
<tr><td align="right">密码</td><td><input type="password" name="user.userPwd" id="pwd"></td></tr>
<tr><td align="right">请再次输入密码</td><td><input type="password" id="repwd"></td></tr>
<tr><td align="right">性别</td><td>男<input type="radio" name="user.userSex" value="男" checked="checked">&nbsp;女<input type="radio" name="user.userSex" value="女" ></td></tr>
<tr><td align="right">身份证</td><td><input type="text" name="user.idNum"></td></tr>
<tr><td align="right">电话</td><td><input type="text" name="user.userTel"></td></tr>
<tr><td align="right"><input type="button" value="注册" onclick="reg();"></td><td><input type="reset" value="重置"></td></tr>
  
  </table>
  </form>
  </body>
</html>
